CustomSettings.scalaSettings
CustomSettings.compilerSettings

val slick = taskKey[Seq[File]]("gen-table")

slick := {
  val dir = (scalaSource in Compile).value
  val cp = (dependencyClasspath in Compile).value
  val r = (runner in Compile).value
  val s = streams.value
  val sourceDir = (dir / "slickSource").getPath
  r.run("demo.OverlordCodeGeneratorRunnerRunner", cp.files, Array(sourceDir), s.log)
  Seq(file(sourceDir))
}

lazy val `overlord-dbgen`: Project = (project in file("../overlord-dbgen"))
dependsOn(`overlord-dbgen`)

libraryDependencies ++= Dependencies.circe